package com.lwy.job;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class TrainingClassJob {


    @Scheduled(cron = "${job.trainingClassJob.cron}")
    public void execute() {
        System.out.println("TrainingClassJob execute : " + LocalDateTime.now());
    }

}
